/**
 * Created with Interllij IDEA.
 * Descriptiption:
 * User: 王澄慧
 * Date: 2022-04-11
 * Time: 13:53
 */




class Day{
    int year ;
    int month ;
    int day ;
    public Day(int a,int b,int c){
        System.out.println("这是一个带参数的构造方法");
    }
    public Day(){
        System.out.println("这是一个不带参数的构造方法");
    }
    public void Today(int a,int b,int c) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public void printDay(){
        System.out.println(this.year+"/"+this.month+"/"+"this.day");
    }

}
public class TestDemo {
    public static void main(String[] args) {
        Day day = new Day();
        day.printDay();
        day.Today(2022, 12, 3);
        day.printDay();
    }
}
/*class Student {
    public String name;
    public int age;
    public double lenght;

    public void eat() {
        System.out.println("正在吃饭！");
    }

    public void run() {
        System.out.println("正在跑步！");
    }
}
    /*public static void main1(String[] args) {
        Student student1 = new Student();
        student1.name = "lucky";
        student1.age = 19;
        student1.lenght = 167.1;
        System.out.println(student1.name);
        System.out.println(student1.age);
        System.out.println(student1.lenght);
        student1.eat();
        student1.run();
    }
    }*/
